/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package EJB_GameLogic;

import javax.ejb.Remote;

/**
 *
 * @author DROWNE
 */
@Remote
public interface GameLogicRemote {
    public int registerUser(String _username, String _password, String _nickName, String _email);
    public int loginUser(String _username, String _password);
    public int setPosition(int gameSessionID, int latitude, int longitude);
    public int createNewgame(String owner, int duration);
    public String getAvailableGames();
    public int joinGame(int idGame, String username);
    public String getPlaterList(int idgame);
    public int setCenterPosition(int gameID, int latitude, int longitude);
    public String getCenterPosition(int idgame);
    public int getGamePhase(int idgame);
    public int setGamePhase(int idgame, int gamePhase);
    public String retrievePlayerPosition(String username, int idgame);
    public String retrievePlayerPositionByGameSession(int gamesessionID);
    public String retrieveAllPlayerPosition(int idgame);
    public String retrieveTeamMatesPositions(int idgame, int gamesessionID, int team);
    public String retrieveEnemiesPositions(int idgame, int gamesessionID, int team);
    public int getNumPlayers(int idgame);
    public int assignTeam(int gamesessionID, int teamID);
    public int getTeam(int gamesessionID);
    public int autoAssignTeams(int idgame);
    public int getPlayerState(int gamesessionID);
    public int getSimplePlayerState(int gamesessionID);
    public int setPlayerState(int gamesessionID, int state);
    public int getCaptureState(int gamesessionID);
    public int setCaptureState(int gamesessionID, int state);
    public double calculateDistance(String latVal1, String lonVal1, String latVal2, String lonVal2);
    

}
